import dynamicSvc from "./service/dynamicsvc";
class DynamicINTF {
    constructor(canvas) {
        this.m_pCanvas = canvas;
        this.m_pService = new dynamicSvc.DynamicSvc(canvas.getDataManager());
    }

    switchState(gid,state){
        console.log("switchState______________");
        this.m_pService.switchState(gid,state);
        this.m_pCanvas.rePaint(1);
    }

    locateTo(gid){
        this.m_pService.locateTo(gid);
        this.m_pCanvas.rePaint(1);
    }

    setScale(scale){
        this.m_pService.setScale(scale);
        this.m_pCanvas.rePaint(1);
    }
}

export default { DynamicINTF }